package com.dog.basics.bean.dto.api.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author guoy
 * @since 2020-03-23
 */
@Data
public class BdUserDto implements Serializable {

    /**
     * 用户昵称
     */
    @NotBlank(message = "手机号(或者邮箱)不能为空")
    @ApiModelProperty(value = "手机号(或者邮箱)", dataType = "String", required = true)
    private String phone;


    @ApiModelProperty(value = "openid" ,dataType = "String",required = true)
    @NotBlank(message="openid不能为空")
    private String openid;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", dataType = "String", required = true)
    private String code;

    @ApiModelProperty(value = "0:公众号,小程序员 2:App",dataType = "Integer",required = true)
    @NotNull(message="快捷登录方式")
    private Integer type;


}
